/**
 * 
 */
package com.ls.lserp.modules.order.dao;

import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.modules.material.entity.InventoryRequestEx;
import com.ls.lserp.modules.order.entity.Order;
import com.ls.lserp.modules.order.entity.StyleOptionEntity;


/**
 * 订单DAO接口
 * @author zq
 * @version 2016-10-31
 */
@MyBatisDao
public interface CustomizationUnitDao extends CrudDao<StyleOptionEntity> {

	/**
     * 插入定制单耗信息
     * @param order
     * @return
     */
    public void updateExcelData(StyleOptionEntity styleOptionEntity);
    
    /**
     * 获取定制单耗信息
     * @param styleID
     * @return
     */
    public List<StyleOptionEntity> findList(StyleOptionEntity styleOptionEntity);
    
    /**
     * 获取款式ID
     * @param styleID
     * @return
     */
    public Long getStyleID(String styleNo);
    
    /**
     * 获取面料ID
     * @param styleID
     * @return
     */
    public Long getMaterialID(String materialCode);
    
    /**
     * 获取面料ID
     * @param styleID
     * @return
     */
    public List<StyleOptionEntity> findUnitCostDetail(StyleOptionEntity styleOptionEntity);

    /**
     * 获取面料ID
     * @param styleID
     * @return
     */
    public List<InventoryRequestEx> findAllUnitCost(InventoryRequestEx inventoryRequestEx);
    
    /**
     * 获取定制合同小信息 
     * 
     * @return
     */
    public List<StyleOptionEntity> findContractInfo();
    
    /**
     * 通过款式ID获取面料标list
     * @param styleID
     * @return
     */
    public List<StyleOptionEntity> findMaterialLabelList(StyleOptionEntity styleOptionEntity);
}
